<?php
/**
 * Created by PhpStorm.
 * User: a4041
 * Date: 2018/6/13
 * Time: 13:46
 */

namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Banner extends Model
{
    protected $table = 'banner';
    protected $guarded = ['id'];

    public function items(){
        return $this->hasMany('App\Models\BannerItem','banner_id','id');
    }
}